package com.crazy.index.service.house;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.crazy.index.domain.house.HousePicture;
import com.crazy.index.domain.info.HouseInfo;
import com.crazy.index.domain.po.HousePo;
import com.crazy.index.exception.BizException;

public interface HouseService {
	/**
	 * 
	 * @param houseInfo
	 * @return
	 * @throws BizException
	 */
	public int addHouse(HouseInfo houseInfo) throws BizException;
	/**
	 * 
	 * @param pageIndex
	 * @param housePo
	 * @return
	 */
	public List<HousePo> querys(Integer pageIndex, HousePo housePo);
	/**
	 * 
	 * @param housePo
	 * @return
	 */
 	public Map<Integer, List<HousePo>> queryHouses(HousePo housePo);
 	/**
 	 * 
 	 * @param houseId
 	 * @return
 	 */
	public HousePo queryHouse(Integer houseId);
	/**
	 * 
	 * @param houseId
	 * @return
	 */
	public List<HousePicture>queryPictures(Integer houseId);
	
	/**
	 * 
	 * @param houseId
	 * @param pictureUrl
	 * @return
	 */
	public List<HousePicture> addHousePicture(Integer houseId,String pictureUrl);
	/**
	 * 
	 */
	public void updateHouseFlog(Integer houseId,Integer flog);
	/**
	 * 
	 * @param houseId
	 * @param price
	 */
	public void updatHousePrice(Integer houseId,Double price);
	
	
	public  void delete(@Param("id")Integer id);
	
	
}